package parser_antlr4.aspect;

import java.util.ArrayList;
import java.util.List;

public class ParserAspectContainer {

    private final List<ParserAspect> aspects;

    public ParserAspectContainer() {
        this.aspects = new ArrayList<>();
    }

    public synchronized void addParserAspect(ParserAspect parserAspect) {
        if (parserAspect != null) {
            this.aspects.add(parserAspect);
        }
    }

    public List<ParserAspect> getAspects() {
        return aspects;
    }
}
